<?php

/**
 * class class
 *
 * Description for class class
 *
 * @author:
*/
class nl2br_filter
{
	function filter($in, $out, &$consumed, $closing) 
	{
		while ($bucket = stream_bucket_make_writeable($in)) {
			$bucket->data = nl2br($bucket->data);
			$consumed += $bucket->datalen;
			stream_bucket_append($out, $bucket);
		}
		return PSFS_PASS_ON;
	}
}

?>